package routers

import (
	"testapp/controllers"
	"github.com/astaxie/beego"
)

func init() {
    beego.Router("/", &controllers.MainController{})
	// 新增路由
	beego.Router("/hello", &controllers.HelloController{})

	// 新增路由
	beego.Router("/getuser", &controllers.GetUserController{},"get:Get;post:Post")
	//beego.Router("/upload", &controllers.UpLoadController{},"get:Get;post:FileD")
	beego.Router("/upfile",&controllers.UpLoadController{},"post:FileD")
    //上传文件

}
